package com.spring.rpc;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.ChannelInboundHandlerAdapter;

/**
 * @描述:
 * @作者:Marks
 * @日期:22:44 2018-10-18
 * @版权:
 */
public class RpcServerHandler extends ChannelInboundHandlerAdapter {

    @Override
    public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
        super.channelRead(ctx, msg);
        //ctx 可以用来向客户端发送数据
        //msg 可以取到客户端发来的数据

    }
}
